<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity(repositoryClass="App\Repository\VideoRepository")
 */
class Video
{
    /**
     * @ORM\Id()
     * @ORM\GeneratedValue()
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @ORM\Column(type="string", length=255)
     */
    private $title;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $topicId;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $pic;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $gradeId;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $subjectId;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $orders;

    /**
     * @ORM\Column(type="string", length=32, nullable=true)
     */
    private $addtime;

    /**
     * @ORM\Column(type="string", length=32)
     */
    private $updatetime;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $isHot;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $isVip;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $isScan;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $tips;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $url;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $teacherId;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $isOn;

    /**
     * @ORM\Column(type="float", nullable=true)
     */
    private $star;

    public function getId()
    {
        return $this->id;
    }

    public function getTitle(): ?string
    {
        return $this->title;
    }

    public function setTitle(string $title): self
    {
        $this->title = $title;

        return $this;
    }

    public function getTopicId(): ?int
    {
        return $this->topicId;
    }

    public function setTopicId(?int $topicId): self
    {
        $this->topicId = $topicId;

        return $this;
    }

    public function getPic(): ?string
    {
        return $this->pic;
    }

    public function setPic(?string $pic): self
    {
        $this->pic = $pic;

        return $this;
    }

    public function getGradeId(): ?int
    {
        return $this->gradeId;
    }

    public function setGradeId(?int $gradeId): self
    {
        $this->gradeId = $gradeId;

        return $this;
    }

    public function getSubjectId(): ?int
    {
        return $this->subjectId;
    }

    public function setSubjectId(?int $subjectId): self
    {
        $this->subjectId = $subjectId;

        return $this;
    }

    public function getOrders(): ?int
    {
        return $this->orders;
    }

    public function setOrders(?int $orders): self
    {
        $this->orders = $orders;

        return $this;
    }

    public function getAddtime(): ?string
    {
        return $this->addtime;
    }

    public function setAddtime(?string $addtime): self
    {
        $this->addtime = $addtime;

        return $this;
    }

    public function getUpdatetime(): ?string
    {
        return $this->updatetime;
    }

    public function setUpdatetime(string $updatetime): self
    {
        $this->updatetime = $updatetime;

        return $this;
    }

    public function getIsHot(): ?int
    {
        return $this->isHot;
    }

    public function setIsHot(?int $isHot): self
    {
        $this->isHot = $isHot;

        return $this;
    }

    public function getIsVip(): ?int
    {
        return $this->isVip;
    }

    public function setIsVip(?int $isVip): self
    {
        $this->isVip = $isVip;

        return $this;
    }

    public function getIsScan(): ?int
    {
        return $this->isScan;
    }

    public function setIsScan(?int $isScan): self
    {
        $this->isScan = $isScan;

        return $this;
    }

    public function getTips(): ?string
    {
        return $this->tips;
    }

    public function setTips(?string $tips): self
    {
        $this->tips = $tips;

        return $this;
    }

    public function getUrl(): ?string
    {
        return $this->url;
    }

    public function setUrl(?string $url): self
    {
        $this->url = $url;

        return $this;
    }

    public function getTeacherId(): ?int
    {
        return $this->teacherId;
    }

    public function setTeacherId(?int $teacherId): self
    {
        $this->teacherId = $teacherId;

        return $this;
    }

    public function getIsOn(): ?int
    {
        return $this->isOn;
    }

    public function setIsOn(?int $isOn): self
    {
        $this->isOn = $isOn;

        return $this;
    }

    public function getStar(): ?float
    {
        return $this->star;
    }

    public function setStar(?float $star): self
    {
        $this->star = $star;

        return $this;
    }
}
